package cn.miju.admin.system.vo;

import cn.miju.admin.framework.model.BaseInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * <pre>
 * 保存字典
 * </pre>
 *
 * @author zhuming
 * @version 1.0.0
 * @since 2023-04-06 17:26
 */
@Data
@ApiModel
@EqualsAndHashCode(callSuper = true)
public class DictSaveInVO extends BaseInfo {
    /**
     * 字典ID
     */
    @ApiModelProperty(value = "字典ID[传空表示新增]")
    private Long id;
    /**
     * 父字典ID
     */
    @ApiModelProperty(value = "父字典ID")
    private Long parentId;
    /**
     * 字典代码
     */
    @ApiModelProperty(value = "字典代码", required = true)
    @NotBlank(message = "传入字典代码不能为空")
    private String code;
    /**
     * 字典名称
     */
    @ApiModelProperty(value = "字典名称", required = true)
    @NotBlank(message = "传入字典名称不能为空")
    private String name;
}
